#ifndef TOOL_H
#define TOOL_H

#include <QObject>
#include <QThreadPool>
#include "databasetool.h"
#include "tcptool.h"
// #include "tcptool.h"
class Tool:public QObject
{
    Q_OBJECT
public:
    Tool();
    Tool(int NOTP);
    int getNumberOfThreadPool() const;
    void setNumberOfThreadPool(int newNumberOfThreadPool);
    void setMaxThreadCount(int threadCount);
    static Tool* tool;
    static Tool* getStaticTool();


    databaseTool *getDatabaseTool() const;
    void setDatabaseTool(databaseTool *newDatabaseTool);


    tcpTool *getKTcpTool() const;
    void setKTcpTool(tcpTool *newKTcpTool);

private:
    int numberOfThreadPool=10;
    tcpTool *KTcpTool;
    databaseTool *databaseTool;
};

#endif // TOOL_H
